package Array;

public class Demo04 {
    public static void main(String[] args) {
        int[] arrays = {1,2,3,4,5};
        //JDK1.5, 没有下标
        /*for(int array:arrays){
            System.out.println(array);
        }*/
        printArryay(arrays);
    }
    //打印数组

    public static void printArryay(int[] arrays){
        for (int i =0;i<arrays.length;i++){
            System.out.print(arrays[i]+"; ");
        }
    }
    //result.length



}